package com.roamer.config;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * 聚合天气服务配置
 *
 * @author roamer
 * @version v1.0
 * @date 2020/3/26 13:17
 */
@Component
public class JuHeWeatherProperties {

    @Value("${juhe.key:7081f2f014ac1ac1aa9f40d62b6117f6}")
    private String key;

    @Value("${juhe.url:http://apis.juhe.cn/simpleWeather/query}")
    private String url;

    @Value("${juhe.timeout:15}")
    private  Integer timeoutOfMinute;

    public String getKey() {
        return key;
    }

    public void setKey(String key) {
        this.key = key;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public Integer getTimeoutOfMinute() {
        return timeoutOfMinute;
    }

    public void setTimeoutOfMinute(Integer timeoutOfMinute) {
        this.timeoutOfMinute = timeoutOfMinute;
    }
}
